import type { IBanner, IPage, IArticle } from '@/types'
import request from '@/utils/https'

export function getArticles(data: IPage) {
  return request<IArticle[]>({
    url: '/art/list',
    method: 'post',
    data
  })
}

export function getVideo(data: IPage) {
  return request<IArticle[]>({
    url: '/artVideo/list',
    method: 'post',
    data
  })
}
